#!/bin/bash
set -e
set -x
MYDIR="${0%/*}"
cd "$MYDIR/.."
source "recipes/common.sh"


# RECIPE START procps-ng
# depends: systemd

reset_mtime procps-ng procps-ng/configure.ac
mkdir -p build/procps-ng
cd build/procps-ng
env \
	NCURSES_LIBS='-lncursesw -ltinfo' \
	NCURSES_CFLAGS='-D_XOPEN_SOURCE=600' \
../../procps-ng/configure \
	${CONFIGURE_ARGS} \
	--disable-kill \
	--with-systemd \
	ac_cv_func_malloc_0_nonnull=yes \
	ac_cv_func_realloc_0_nonnull=yes \
	${AUTOCRAP_KLUDGE}

cd ../..
make_build build/procps-ng

# RECIPE END procps-ng
